import {createRouter, createWebHashHistory} from 'vue-router'

const routes = [
    {
        path: '/',
        name: 'Home',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import(/* webpackChunkName: "about" */ '../views/portEconomy/Home')
    },
    {
        path: '/nsp',
        name: 'NanShanPortInfo',
        component: () => import('../views/portEconomy/NanShanPortInfo')
    },
    {
        path: '/left-home',
        name: 'LeftHome',
        component: () => import('../views/portFreezer/LeftMenu')
    },
    {
        path: '/left-menu',
        name: 'LeftMenu',
        component: () => import('../views/portFreezer/LeftMenu')
    },
    {
        path: '/portFreezer',
        name: 'portFreezer',
        component: () => import('../views/portFreezer/index')
    },
    {
        path: '/conta-middle-home/:type',
        name: 'ContaMiddleHome',
        component: () => import('../views/portEconomy/ContaMiddleHome')
    },
    {
        path: '/goods-middle-home/:type',
        name: 'GoodsMiddleHome',
        component: () => import('../views/portEconomy/GoodsMiddleHome')
    },
    {
        path: '/ns-goods-middle-home',
        name: 'NsGoodsMiddleHome',
        component: () => import('../views/portEconomy/NsGoodsMiddleHome')
    },
    {
        path: '/sz-goods-middle-home/:type',
        name: 'SzGoodsMiddleHome',
        component: () => import('../views/portEconomy/SzGoodsMiddleHome')
    },
    {
        path: '/ns-goods-middle-world-map-home/:type',
        name: 'GoodsMiddleWorldMap',
        component: () => import('../views/portEconomy/GoodsMiddleWorldMap')
    },
    {
        path: '/left-menu/ColdChain',
        name: 'ColdChain',
        component: () => import('../views/portFreezer/components/ColdChain')
    },
    {
        path: '/left-menu/FrozenCargo',
        name: 'FrozenCargo',
        component: () => import('../views/portFreezer/components/FrozenCargo')
    },
    {
        path: '/left-menu/WorldMapModal',
        name: 'WorldMapModal',
        component: () => import('../views/portFreezer/components/WorldMapModal')
    },
    {
        path: '/right-menu/PackageTable',
        name: 'PackageTable',
        component: () => import('../views/portFreezer/components/PackageTable')
    },
    {
        path: '/right-menu',
        name: 'RightMenu',
        component: () => import('../views/portFreezer/RightMenu')
    },
    {
        path: '/mid-menu',
        name: 'MidMenu',
        component: () => import('../views/portFreezer/components/MidMenu')
    },
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
